<!DOCTYPE html>
<html>
<head>
  <title></title>
  <script type="text/javascript">
    window.foo = "bar"
  </script>
</head>
<body>
  <h1 id="iframe-h1">iframe h1</h1>
</body>
</html>